package com.wicket.okrcalc.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrcalc.biz.service.dto.req.*;
import com.wicket.okrcalc.biz.service.dto.res.*;
import com.wicket.okrcalc.common.exception.BizException;
import com.wicket.okrcalc.common.util.CommonFunctionHelper;
import com.wicket.okrcalc.common.util.RedisUtil;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;

import com.wicket.okrcalc.integration.dto.DataBigMiniRecordDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wicket.okrcalc.biz.service.nb.NbInterfaceMode;
import com.wicket.okrcalc.common.exception.Assert;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrcalc.biz.service.dto.common.MemoryBusinessDataDto;
import com.wicket.okrcalc.biz.service.dto.common.MemoryBusinessResDataDto;


/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class InterfaceModeServiceImpl
  implements com.wicket.okrcalc.biz.service.InterfaceModeService {

  @Resource
  private RedisUtil redisUtil;
//@Resource
 //private MCustomFieldsService mCustomFieldsService;
@Resource
  private NbInterfaceMode nbInterfaceMode;
//@Resource
 //private MCustomFields5Service mCustomFields5Service;
//@Resource
 //private MCustomFields3Service mCustomFields3Service;
/**
   * D4-获取内存中业务字段(公共)[5343]
   * gen by moon at 2/10/2023, 10:17:32 PM
   */
  @Trace(operationName = "D4-获取内存中业务字段(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ObtainGetPublicFieldCacheComRespDto obtainGetPublicFieldCacheCom(ObtainGetPublicFieldCacheComReqDto reqDto){
    
      
      ObtainGetPublicFieldCacheRespDto getPublicFieldCacheRes_1 =null;
//步骤0: M4-获取内存中业务字段（特殊方法） - obtainGetPublicFieldCache
     //ModelCode: getPublicFieldCache
        ObtainGetPublicFieldCacheRespDto getPublicFieldCacheRes = null;
    ObtainGetPublicFieldCacheReqDto getPublicFieldCacheReq=new ObtainGetPublicFieldCacheReqDto();
  
  
    /*M4-获取内存中业务字段（特殊方法）[5342]  用于定时任务/接口执行时，获取执行所需的缓存中业务字段信息，供定时任务/接口中虚拟用况使用 */
    
      getPublicFieldCacheRes = nbInterfaceMode.obtainGetPublicFieldCache(getPublicFieldCacheReq);
      
      
      getPublicFieldCacheRes_1 = getPublicFieldCacheRes;
    
ObtainGetPublicFieldCacheComRespDto retData = new ObtainGetPublicFieldCacheComRespDto();
  if(getPublicFieldCacheRes_1!=null){
      retData.setTargetCycleContentTypeCode(getPublicFieldCacheRes_1.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:465549_1
retData.setTargetCycleContentId(getPublicFieldCacheRes_1.getTargetCycleContentId());//SimpleFieldAssign//sourceId:465550_1
retData.setReportType(getPublicFieldCacheRes_1.getReportType());//SimpleFieldAssign//sourceId:465554_1
retData.setReportManagementModel(getPublicFieldCacheRes_1.getReportManagementModel());//SimpleFieldAssign//sourceId:465555_1
retData.setIsOpenCustomReport(getPublicFieldCacheRes_1.getIsOpenCustomReport());//SimpleFieldAssign//sourceId:465641_1
retData.setCycleId(getPublicFieldCacheRes_1.getCycleId());//SimpleFieldAssign//sourceId:465551_1
retData.setCycleTypeCode(getPublicFieldCacheRes_1.getCycleTypeCode());//SimpleFieldAssign//sourceId:465645_1
retData.setCycleStartTime(getPublicFieldCacheRes_1.getCycleStartTime());//SimpleFieldAssign//sourceId:465552_1
retData.setCycleEndTime(getPublicFieldCacheRes_1.getCycleEndTime());//SimpleFieldAssign//sourceId:465553_1
retData.setLastCycleType(getPublicFieldCacheRes_1.getLastCycleType());//SimpleFieldAssign//sourceId:465611_1
retData.setFatherCycleType(getPublicFieldCacheRes_1.getFatherCycleType());//SimpleFieldAssign//sourceId:465612_1
retData.setMidCycleType(getPublicFieldCacheRes_1.getMidCycleType());//SimpleFieldAssign//sourceId:465613_1
retData.setSubcycleType(getPublicFieldCacheRes_1.getSubcycleType());//SimpleFieldAssign//sourceId:465614_1
retData.setIrregularCycleType(getPublicFieldCacheRes_1.getIrregularCycleType());//SimpleFieldAssign//sourceId:465615_1
retData.setTargetId(getPublicFieldCacheRes_1.getTargetId());//SimpleFieldAssign//sourceId:465556_1
retData.setEvaluationTemplateId(getPublicFieldCacheRes_1.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:465557_1
retData.setSpaceId(getPublicFieldCacheRes_1.getSpaceId());//SimpleFieldAssign//sourceId:465558_1
retData.setSubjectiveScorePoint(getPublicFieldCacheRes_1.getSubjectiveScorePoint());//SimpleFieldAssign//sourceId:468823_1
retData.setDecimalDigitsLastRules(getPublicFieldCacheRes_1.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:468824_1
retData.setCurSubjectiveScoreWeight(getPublicFieldCacheRes_1.getCurSubjectiveScoreWeight());//SimpleFieldAssign//sourceId:468825_1
retData.setProcessSubjectiveScoreWeight(getPublicFieldCacheRes_1.getProcessSubjectiveScoreWeight());//SimpleFieldAssign//sourceId:468826_1
retData.setSubjectiveScoreCountRule(getPublicFieldCacheRes_1.getSubjectiveScoreCountRule());//SimpleFieldAssign//sourceId:469012_1
retData.setDecimalPointRules(getPublicFieldCacheRes_1.getDecimalPointRules());//SimpleFieldAssign//sourceId:469869_1
retData.setWeightDecimalPoint(getPublicFieldCacheRes_1.getWeightDecimalPoint());//SimpleFieldAssign//sourceId:470647_1
retData.setDegreeDecimalPoint(getPublicFieldCacheRes_1.getDegreeDecimalPoint());//SimpleFieldAssign//sourceId:470648_1
retData.setProgressDecimalPoint(getPublicFieldCacheRes_1.getProgressDecimalPoint());//SimpleFieldAssign//sourceId:470649_1
retData.setTargetValueType(getPublicFieldCacheRes_1.getTargetValueType());//SimpleFieldAssign//sourceId:470717_1
retData.setTargetDivisionSame(getPublicFieldCacheRes_1.getTargetDivisionSame());//SimpleFieldAssign//sourceId:470718_1
retData.setLevelNumber(getPublicFieldCacheRes_1.getLevelNumber());//SimpleFieldAssign//sourceId:470719_1
retData.setQuantityObjectiveNoValue(getPublicFieldCacheRes_1.getQuantityObjectiveNoValue());//SimpleFieldAssign//sourceId:471187_1
retData.setIsSubjectiveScoring(getPublicFieldCacheRes_1.getIsSubjectiveScoring());//SimpleFieldAssign//sourceId:471481_1
retData.setSubjectiveRatingTotalValueUnit(getPublicFieldCacheRes_1.getSubjectiveRatingTotalValueUnit());//SimpleFieldAssign//sourceId:472364_1
retData.setSubjectiveRatingTotalValue(getPublicFieldCacheRes_1.getSubjectiveRatingTotalValue());//SimpleFieldAssign//sourceId:472365_1
retData.setIsParentCycle(getPublicFieldCacheRes_1.getIsParentCycle());//SimpleFieldAssign//sourceId:473044_1
retData.setIsSubCycle(getPublicFieldCacheRes_1.getIsSubCycle());//SimpleFieldAssign//sourceId:473045_1
retData.setIsMetaphase(getPublicFieldCacheRes_1.getIsMetaphase());//SimpleFieldAssign//sourceId:473046_1
retData.setIsProcessCycleStage(getPublicFieldCacheRes_1.getIsProcessCycleStage());//SimpleFieldAssign//sourceId:473047_1
retData.setIsDefinedExecuteCycleStage(getPublicFieldCacheRes_1.getIsDefinedExecuteCycleStage());//SimpleFieldAssign//sourceId:473048_1
retData.setSchemeDataPara(getPublicFieldCacheRes_1.getSchemeDataPara());//SimpleFieldAssign//sourceId:482868_1
retData.setCategoryReportObjectSetCode(getPublicFieldCacheRes_1.getCategoryReportObjectSetCode());//SimpleFieldAssign//sourceId:514284_1
retData.setObjectiveReportObjectSetCode(getPublicFieldCacheRes_1.getObjectiveReportObjectSetCode());//SimpleFieldAssign//sourceId:514285_1
retData.setCycleMode(getPublicFieldCacheRes_1.getCycleMode());//SimpleFieldAssign//sourceId:558880_1
retData.setIsLastCycle(getPublicFieldCacheRes_1.getIsLastCycle());//SimpleFieldAssign//sourceId:631541_1
retData.setIsLastObjective(getPublicFieldCacheRes_1.getIsLastObjective());//SimpleFieldAssign//sourceId:636368_1
retData.setEvaObjTargetCycleCode(getPublicFieldCacheRes_1.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:646385_1
retData.setRespBodyType(getPublicFieldCacheRes_1.getRespBodyType());//SimpleFieldAssign//sourceId:646637_1
retData.setIsUseFirstDept(getPublicFieldCacheRes_1.getIsUseFirstDept());//SimpleFieldAssign//sourceId:646648_1
retData.setActualScoreFormula(getPublicFieldCacheRes_1.getActualScoreFormula());//SimpleFieldAssign//sourceId:649649_1
retData.setActualScoreIsOpenLocalLevelScore(getPublicFieldCacheRes_1.getActualScoreIsOpenLocalLevelScore());//SimpleFieldAssign//sourceId:649650_1
retData.setActualUfuncType(getPublicFieldCacheRes_1.getActualUfuncType());//SimpleFieldAssign//sourceId:665530_1
    }
  

  
  
return retData;
  }
/**
   * D4-执行业务应用业务字段推送内存(公共)[5395]
   * gen by moon at 2/10/2023, 10:17:26 PM
   */
  @Trace(operationName = "D4-执行业务应用业务字段推送内存(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementBizBusinessFieldPushMemoryComRespDto implementBizBusinessFieldPushMemoryCom(ImplementBizBusinessFieldPushMemoryComReqDto reqDto){
    
      
      //步骤0: M4-执行业务应用业务字段推送内存（特殊方法） - implementBizBusinessFieldPushMemory
     //ModelCode: publicFieldCache
        ImplementBizBusinessFieldPushMemoryRespDto publicFieldCacheRes = null;
    ImplementBizBusinessFieldPushMemoryReqDto publicFieldCacheReq=new ImplementBizBusinessFieldPushMemoryReqDto();
  if(reqDto!=null){
      publicFieldCacheReq.setReportManagementModel(reqDto.getReportManagementModel());//SimpleFieldAssign//sourceId:486644_1
publicFieldCacheReq.setQuantityObjectiveNoValue(reqDto.getQuantityObjectiveNoValue());//SimpleFieldAssign//sourceId:486659_1
publicFieldCacheReq.setNoPracticalValueObjIsProgReport(reqDto.getNoPracticalValueObjIsProgReport());//SimpleFieldAssign//sourceId:486645_1
publicFieldCacheReq.setReportType(reqDto.getReportType());//SimpleFieldAssign//sourceId:486646_1
publicFieldCacheReq.setIsOpenCustomReport(reqDto.getIsOpenCustomReport());//SimpleFieldAssign//sourceId:486647_1
publicFieldCacheReq.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:486648_1
publicFieldCacheReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:486649_1
publicFieldCacheReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:486650_1
publicFieldCacheReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:486665_1
publicFieldCacheReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:486651_1
publicFieldCacheReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:486652_1
publicFieldCacheReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:486653_1
publicFieldCacheReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:486654_1
publicFieldCacheReq.setIsSubjectiveScoring(reqDto.getIsSubjectiveScoring());//SimpleFieldAssign//sourceId:486655_1
publicFieldCacheReq.setTargetValueType(reqDto.getTargetValueType());//SimpleFieldAssign//sourceId:486658_1
publicFieldCacheReq.setSubjectiveRatingTotalValue(reqDto.getSubjectiveRatingTotalValue());//SimpleFieldAssign//sourceId:486660_1
publicFieldCacheReq.setSubjectiveScorePoint(reqDto.getSubjectiveScorePoint());//SimpleFieldAssign//sourceId:486661_1
publicFieldCacheReq.setDegreeDecimalPoint(reqDto.getDegreeDecimalPoint());//SimpleFieldAssign//sourceId:486662_1
publicFieldCacheReq.setDecimalPointRules(reqDto.getDecimalPointRules());//SimpleFieldAssign//sourceId:486663_1
publicFieldCacheReq.setDecimalDigitsLastRules(reqDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:486664_1
publicFieldCacheReq.setSubjectiveScoreCountRule(reqDto.getSubjectiveScoreCountRule());//SimpleFieldAssign//sourceId:486666_1
publicFieldCacheReq.setCurSubjectiveScoreWeight(reqDto.getCurSubjectiveScoreWeight());//SimpleFieldAssign//sourceId:486667_1
publicFieldCacheReq.setProcessSubjectiveScoreWeight(reqDto.getProcessSubjectiveScoreWeight());//SimpleFieldAssign//sourceId:486668_1
publicFieldCacheReq.setTargetDivisionSame(reqDto.getTargetDivisionSame());//SimpleFieldAssign//sourceId:486669_1
publicFieldCacheReq.setLevelNumber(reqDto.getLevelNumber());//SimpleFieldAssign//sourceId:486670_1
publicFieldCacheReq.setLastCycleType(reqDto.getLastCycleType());//SimpleFieldAssign//sourceId:486671_1
publicFieldCacheReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:486672_1
publicFieldCacheReq.setSubcycleType(reqDto.getSubcycleType());//SimpleFieldAssign//sourceId:486673_1
publicFieldCacheReq.setSchemeDataPara(reqDto.getSchemeDataPara());//SimpleFieldAssign//sourceId:486674_1
publicFieldCacheReq.setIsFatherCycle(reqDto.getIsFatherCycle());//SimpleFieldAssign//sourceId:486779_1
publicFieldCacheReq.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:486780_1
publicFieldCacheReq.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:486781_1
publicFieldCacheReq.setIsProcessCycleStage(reqDto.getIsProcessCycleStage());//SimpleFieldAssign//sourceId:486782_1
publicFieldCacheReq.setIsDefinedExecuteCycleStage(reqDto.getIsDefinedExecuteCycleStage());//SimpleFieldAssign//sourceId:486783_1
publicFieldCacheReq.setSubjectiveRatingTotalValueUnit(reqDto.getSubjectiveRatingTotalValueUnit());//SimpleFieldAssign//sourceId:486816_1
publicFieldCacheReq.setCategoryReportObjectSetCode(reqDto.getCategoryReportObjectSetCode());//SimpleFieldAssign//sourceId:514290_1
publicFieldCacheReq.setObjectiveReportObjectSetCode(reqDto.getObjectiveReportObjectSetCode());//SimpleFieldAssign//sourceId:514291_1
publicFieldCacheReq.setCycleMode(reqDto.getCycleMode());//SimpleFieldAssign//sourceId:558931_1
publicFieldCacheReq.setIsLastObjective(reqDto.getIsLastObjective());//SimpleFieldAssign//sourceId:636363_1
publicFieldCacheReq.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:646380_1
publicFieldCacheReq.setRespBodyType(reqDto.getRespBodyType());//SimpleFieldAssign//sourceId:646632_1
publicFieldCacheReq.setIsUseFirstDept(reqDto.getIsUseFirstDept());//SimpleFieldAssign//sourceId:646643_1
publicFieldCacheReq.setActualScoreFormula(reqDto.getActualScoreFormula());//SimpleFieldAssign//sourceId:649567_1
publicFieldCacheReq.setActualScoreIsOpenLocalLevelScore(reqDto.getActualScoreIsOpenLocalLevelScore());//SimpleFieldAssign//sourceId:649568_1
    }
  
    /*M4-执行业务应用业务字段推送内存（特殊方法）[3181]  用于定时任务执行时，获取定时任务执行所需的公共信息，存入缓存，供定时任务中虚拟用况使用 */
    Assert.isNull(publicFieldCacheReq.getReportManagementModel(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-汇报管理模式不能为空",false);
Assert.isNull(publicFieldCacheReq.getReportType(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-汇报类型不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsOpenCustomReport(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否开启自定义汇报不能为空",false);
Assert.isNull(publicFieldCacheReq.getTargetCycleContentTypeCode(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-关联目标内容类型编码不能为空",false);
Assert.isNull(publicFieldCacheReq.getTargetCycleContentId(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-关联目标内容ID不能为空",false);
Assert.isNull(publicFieldCacheReq.getCycleId(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-周期ID不能为空",false);
Assert.isNull(publicFieldCacheReq.getCycleTypeCode(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-周期类型标识不能为空",false);
Assert.isNull(publicFieldCacheReq.getCycleStartTime(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-周期开始时间不能为空",false);
Assert.isNull(publicFieldCacheReq.getCycleEndTime(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-周期结束时间不能为空",false);
Assert.isNull(publicFieldCacheReq.getEvaluationTemplateId(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-冗余评价模板ID不能为空",false);
Assert.isNull(publicFieldCacheReq.getTargetId(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-冗余目标ID不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsSubjectiveScoring(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否开启主观评分不能为空",false);
Assert.isNull(publicFieldCacheReq.getLevelNumber(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-层级不能为空",false);
Assert.isNull(publicFieldCacheReq.getLastCycleType(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-末级周期类型不能为空",false);
Assert.isNull(publicFieldCacheReq.getEvaObjTargetCycleId(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-被评对象目标周期ID不能为空",false);
Assert.isNull(publicFieldCacheReq.getSubcycleType(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-子周期周期类型不能为空",false);
Assert.isNull(publicFieldCacheReq.getSchemeDataPara(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-评价模板数据参数不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsFatherCycle(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否父周期不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsSubCycle(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否子周期不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsMetaphase(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否中期不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsProcessCycleStage(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否过程周期阶段不能为空",false);
Assert.isNull(publicFieldCacheReq.getIsDefinedExecuteCycleStage(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-是否自定义执行周期阶段不能为空",false);
Assert.isNull(publicFieldCacheReq.getCycleMode(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-周期模式不能为空",false);
Assert.isNull(publicFieldCacheReq.getActualScoreFormula(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-实际得分公式不能为空",false);
Assert.isNull(publicFieldCacheReq.getActualScoreIsOpenLocalLevelScore(),"D4-执行业务应用业务字段推送内存(公共)-M4-执行业务应用业务字段推送内存（特殊方法）-实际得分是否开启本级得分不能为空",false);
      publicFieldCacheRes = nbInterfaceMode.implementBizBusinessFieldPushMemory(publicFieldCacheReq);
      
      
      
    
ImplementBizBusinessFieldPushMemoryComRespDto retData = new ImplementBizBusinessFieldPushMemoryComRespDto();
  
  

  
  
return retData;
  }
/**
   * D4-计算两个数值相乘服务(公共)[5443]
   * gen by moon at 12/11/2022, 4:11:15 AM
   */
  @Trace(operationName = "D4-计算两个数值相乘服务(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public CalculateMultiplyTwoValuesComRespDto calculateMultiplyTwoValuesCom(CalculateMultiplyTwoValuesComReqDto reqDto){


      ImplementMultiplyTwoValuesRespDto multiOfTwoNumRes_1 =null;
//步骤0: M2执行两个数值相乘（特殊方法） - implementMultiplyTwoValues
     //ModelCode: multiOfTwoNum
        ImplementMultiplyTwoValuesRespDto multiOfTwoNumRes = null;
    ImplementMultiplyTwoValuesReqDto multiOfTwoNumReq=new ImplementMultiplyTwoValuesReqDto();
  if(reqDto!=null){
      multiOfTwoNumReq.setComFloatField1(reqDto.getComFloatField1());//SimpleFieldAssign//sourceId:505128_1
multiOfTwoNumReq.setComFloatField2(reqDto.getComFloatField2());//SimpleFieldAssign//sourceId:505129_1
multiOfTwoNumReq.setDecimalPointRules(reqDto.getDecimalPointRules());//SimpleFieldAssign//sourceId:505139_1
multiOfTwoNumReq.setDecimalDigitsLastRules(reqDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:505140_1
    }

    /*M2执行两个数值相乘（特殊方法）[5444]  入参两个数组，计算A*B */
//    Assert.isNull(multiOfTwoNumReq.getComFloatField1(),"D4-计算两个数值相乘服务(公共)-M2执行两个数值相乘（特殊方法）-通用数值字段1（小数型）不能为空",false);
//Assert.isNull(multiOfTwoNumReq.getComFloatField2(),"D4-计算两个数值相乘服务(公共)-M2执行两个数值相乘（特殊方法）-通用数值字段2（小数型）不能为空",false);
Assert.isNull(multiOfTwoNumReq.getDecimalPointRules(),"D4-计算两个数值相乘服务(公共)-M2执行两个数值相乘（特殊方法）-小数点规则不能为空",false);
Assert.isNull(multiOfTwoNumReq.getDecimalDigitsLastRules(),"D4-计算两个数值相乘服务(公共)-M2执行两个数值相乘（特殊方法）-小数最后一位规则不能为空",false);
      multiOfTwoNumRes = nbInterfaceMode.implementMultiplyTwoValues(multiOfTwoNumReq);


      multiOfTwoNumRes_1 = multiOfTwoNumRes;

CalculateMultiplyTwoValuesComRespDto retData = new CalculateMultiplyTwoValuesComRespDto();
  if(multiOfTwoNumRes_1!=null){
      retData.setCalcResult(multiOfTwoNumRes_1.getCalcResult());//SimpleFieldAssign//sourceId:505133_1
    }




return retData;
  }
/**
   * D4-计算数据集最大小值记录(公共)[5984]
   * gen by moon at 2/28/2023, 4:10:58 PM
   */
  @Trace(operationName = "D4-计算数据集最大小值记录(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public CalculateDataBigMiniRecordComNewRespDto calculateDataBigMiniRecordComNew(CalculateDataBigMiniRecordComNewReqDto reqDto){


      CalculateDataBigMiniRecordNewRespDto maxOrMinOfMultipleNumRes_1 =null;
//步骤0: M4-计算数据集最大小值记录（特殊方法） - calculateDataBigMiniRecordNew
     //ModelCode: maxOrMinOfMultipleNum
        CalculateDataBigMiniRecordNewRespDto maxOrMinOfMultipleNumRes = null;
    CalculateDataBigMiniRecordNewReqDto maxOrMinOfMultipleNumReq=new CalculateDataBigMiniRecordNewReqDto();
  if(reqDto!=null){
      maxOrMinOfMultipleNumReq.setCalcMaxAndMin(reqDto.getCalcMaxAndMin());//SimpleFieldAssign//sourceId:703116_1
maxOrMinOfMultipleNumReq.setDecimalPointRules(reqDto.getDecimalPointRules());//SimpleFieldAssign//sourceId:703117_1
maxOrMinOfMultipleNumReq.setDecimalDigitsLastRules(reqDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:703118_1
    }
if(reqDto!= null&&  reqDto.getDataBigMiniRecordList() !=null&& !CollectionUtil.isEmpty(reqDto.getDataBigMiniRecordList())){
maxOrMinOfMultipleNumReq.setDataBigMiniRecordList(reqDto.getDataBigMiniRecordList().stream().map(item -> BeanUtil.toBean(item, DataBigMiniRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:703115_1
    }

    /*M4-计算数据集最大小值记录（特殊方法）[5985]  用于求数据的最大或最小值。入参数据集+求最大或求最小标识 */
    Assert.isNull(maxOrMinOfMultipleNumReq.getCalcMaxAndMin(),"D4-计算数据集最大小值记录(公共)-M4-计算数据集最大小值记录（特殊方法）-求最大最小值不能为空",false);
      maxOrMinOfMultipleNumRes = nbInterfaceMode.calculateDataBigMiniRecordNew(maxOrMinOfMultipleNumReq);


      maxOrMinOfMultipleNumRes_1 = maxOrMinOfMultipleNumRes;

CalculateDataBigMiniRecordComNewRespDto retData = new CalculateDataBigMiniRecordComNewRespDto();
  if(maxOrMinOfMultipleNumRes_1!=null){
      retData.setCommPrimaryKey(maxOrMinOfMultipleNumRes_1.getCommPrimaryKey());//SimpleFieldAssign//sourceId:703123_1
retData.setComFloatField1(maxOrMinOfMultipleNumRes_1.getComFloatField1());//SimpleFieldAssign//sourceId:703124_1
retData.setComFloatField2(maxOrMinOfMultipleNumRes_1.getComFloatField2());//SimpleFieldAssign//sourceId:703125_1
    }




return retData;
  }
/**
   * D4大屏接收字段入参(公共)[8906]
   * gen by moon at 8/8/2024, 10:06:26 PM
   */
  @Trace(operationName = "D4大屏接收字段入参(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementAcceptFieldComRespDto implementAcceptFieldCom(ImplementAcceptFieldComReqDto reqDto){


      ImplementDashboardReceiveFieldRespDto receptionServiceRes_1 =null;
//步骤0: M4执行大屏接收字段 - implementDashboardReceiveField
     //ModelCode: receptionService
        ImplementDashboardReceiveFieldRespDto receptionServiceRes = null;
    ImplementDashboardReceiveFieldReqDto receptionServiceReq=new ImplementDashboardReceiveFieldReqDto();
  receptionServiceReq.setCustomField24("TARGET_PLAN_SCENE");//CUSTOM_CONVENTION//sourceId:1665845_1
receptionServiceReq.setCustomField23("WORK_TASK_SCENE");//CUSTOM_CONVENTION//sourceId:1665844_1
receptionServiceReq.setCustomField25("REPORTING_TASKS_SCENE");//CUSTOM_CONVENTION//sourceId:1665871_1
receptionServiceReq.setCustomField26("WORK_TASK");//CUSTOM_CONVENTION//sourceId:1665872_1
receptionServiceReq.setCustomField1("COUNT_TOTALS");//CUSTOM_CONVENTION//sourceId:1664917_1
receptionServiceReq.setCustomField2("CALC_AVERAGE_VALUE");//CUSTOM_CONVENTION//sourceId:1664918_1
receptionServiceReq.setCustomField20("OMS_TASK");//CUSTOM_CONVENTION//sourceId:1665622_1
receptionServiceReq.setCustomField21("OMS_QUESTION");//CUSTOM_CONVENTION//sourceId:1665623_1
receptionServiceReq.setCustomField22("ONGOING");//CUSTOM_CONVENTION//sourceId:1665825_1
receptionServiceReq.setCustomField3("TOBESIGN");//CUSTOM_CONVENTION//sourceId:1664939_1
receptionServiceReq.setCustomField4("NOT_AT_THE");//CUSTOM_CONVENTION//sourceId:1664940_1
receptionServiceReq.setCustomField5("ONGOING");//CUSTOM_CONVENTION//sourceId:1664941_1
receptionServiceReq.setCustomField6("OVERDUE");//CUSTOM_CONVENTION//sourceId:1664942_1
receptionServiceReq.setCustomField7("COMPLETED");//CUSTOM_CONVENTION//sourceId:1664943_1
receptionServiceReq.setCustomField8("FAILED");//CUSTOM_CONVENTION//sourceId:1664944_1
receptionServiceReq.setCustomField9("UNREPORTED");//CUSTOM_CONVENTION//sourceId:1665245_1
receptionServiceReq.setCustomField10("EVA");//CUSTOM_CONVENTION//sourceId:1665246_1
receptionServiceReq.setCustomField11("AUDIT");//CUSTOM_CONVENTION//sourceId:1665247_1
receptionServiceReq.setCustomField12("SUCCESS");//CUSTOM_CONVENTION//sourceId:1665248_1
receptionServiceReq.setCustomField29("EXPIRED");//CUSTOM_CONVENTION//sourceId:1667646_1
receptionServiceReq.setCustomField27("TOBEFILL");//CUSTOM_CONVENTION//sourceId:1667626_1
receptionServiceReq.setCustomField28("TOBEEVA");//CUSTOM_CONVENTION//sourceId:1667627_1
receptionServiceReq.setCustomField13("QUESTIONABILITY");//CUSTOM_CONVENTION//sourceId:1665279_1
receptionServiceReq.setCustomField14("SUSPENDED");//CUSTOM_CONVENTION//sourceId:1665280_1
receptionServiceReq.setCustomField15("REJECTED");//CUSTOM_CONVENTION//sourceId:1665281_1
receptionServiceReq.setCustomField16("OVERTIME");//CUSTOM_CONVENTION//sourceId:1665282_1
receptionServiceReq.setCustomField17("SHELVE");//CUSTOM_CONVENTION//sourceId:1665283_1
receptionServiceReq.setCustomField18("CLOSED");//CUSTOM_CONVENTION//sourceId:1665284_1
receptionServiceReq.setCustomField19("RESOLVED");//CUSTOM_CONVENTION//sourceId:1665285_1
receptionServiceReq.setDataType1("TOTAL_NUMBER_OF_TASKS");//sourceId:1665301_1
receptionServiceReq.setDataType2("AVERAGE_TASK_PROGRESS");//sourceId:1665302_1
receptionServiceReq.setDataType3("NUMBER_OF_OVERDUE_TASKS");//sourceId:1665303_1
receptionServiceReq.setDataType4("NUMBER_OF_ONGOING_TASKS");//sourceId:1665304_1
receptionServiceReq.setDataType5("NUMBER_OF_COMPLETED_TASKS");//sourceId:1665305_1
receptionServiceReq.setDataType6("TOTAL_NUMBER_OF_QUESTIONS");//sourceId:1665306_1
receptionServiceReq.setDataType7("AVERAGE_PROBLEM_SOLVING_TIME");//sourceId:1665353_1
receptionServiceReq.setDataType8("NUMBER_OF_UNRESOLVED_ISSUES");//sourceId:1665356_1
receptionServiceReq.setDataType9("NUMBER_OF_TIMEOUT_ISSUES");//sourceId:1665355_1
receptionServiceReq.setDataType10("NUMBER_OF_SOLVED_PROBLEMS");//sourceId:1665354_1
receptionServiceReq.setDataType11("NUMBER_OF_SUCCESS_TASKS");//sourceId:1665817_1
receptionServiceReq.setDataType12("NUMBER_OF_AUDIT_TASKS");//sourceId:1665816_1
receptionServiceReq.setDataType13("NUMBER_OF_EVA_TASKS");//sourceId:1665815_1
receptionServiceReq.setDataType14("NUMBER_OF_UNREPORTED_TASKS");//sourceId:1665814_1
receptionServiceReq.setDataType15("NUMBER_OF_FAILED_TASKS");//sourceId:1665813_1
receptionServiceReq.setDataType16("NUMBER_OF_NOT_AT_THE_TASKS");//sourceId:1665842_1
receptionServiceReq.setDataType17("NUMBER_OF_TOBESIGN_TASKS");//sourceId:1665841_1
receptionServiceReq.setDataType18("NUMBER_OF_CLOSED_PROBLEMS");//sourceId:1665883_1
receptionServiceReq.setDataType19("NUMBER_OF_SHELVE_PROBLEMS");//sourceId:1665882_1
receptionServiceReq.setDataType20("NUMBER_OF_REJECTED_PROBLEMS");//sourceId:1665881_1
receptionServiceReq.setDataType21("NUMBER_OF_SUSPENDED_PROBLEMS");//sourceId:1665888_1
receptionServiceReq.setDataType23("NUMBER_OF_TOBEFILL_TASKS");//sourceId:1667634_1
receptionServiceReq.setDataType24("NUMBER_OF_TOBEEVA_TASKS");//sourceId:1667635_1
receptionServiceReq.setDataType22("NUMBER_OF_OBJECTIVE");//sourceId:1667166_1
receptionServiceReq.setCustomField("TRUE");//CUSTOM_CONVENTION//sourceId:1780502_1
receptionServiceReq.setDataType25("TARGET_ALIGNMENT_NUMBER");//sourceId:1780505_1
receptionServiceReq.setDataType26("TARGET_ALIGNMENT_RATE");//sourceId:1780506_1
receptionServiceReq.setDataType27("NUMBER_OF_LAST_OBJECTIVE");//sourceId:1794095_1
receptionServiceReq.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:1794082_1
receptionServiceReq.setComNumField1(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:1883571_1
receptionServiceReq.setCustomField30("OMS_TARGET_CATEGORY");//CUSTOM_CONVENTION//sourceId:1883553_1
receptionServiceReq.setCustomField31("OMS_TARGET_OBJECTIVE");//CUSTOM_CONVENTION//sourceId:1883554_1
receptionServiceReq.setCustomField32("NUMBER_OF_ROOT_CATEGORY");//CUSTOM_CONVENTION//sourceId:1883555_1
receptionServiceReq.setCustomField33("NUMBER_OF_SECOND_CATEGORY");//CUSTOM_CONVENTION//sourceId:1883556_1
receptionServiceReq.setCustomField34("CURRENET_DEPT");//CUSTOM_CONVENTION//sourceId:1883557_1
receptionServiceReq.setCustomField35("CURRENET_SUBORDINATE_DEPT");//CUSTOM_CONVENTION//sourceId:1883558_1

    /*M4执行大屏接收字段[8856]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField24(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段24不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField23(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段23不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField1(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段2不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField20(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段20不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField21(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段21不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField22(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段22不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField3(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段3不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField4(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段4不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField5(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段5不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField6(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段6不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField7(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段7不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField8(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段8不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField9(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段9不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField10(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段10不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField11(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段11不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField12(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段12不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField27(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段27不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField28(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段28不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField13(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段13不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField14(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段14不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField15(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段15不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField16(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段16不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField17(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段17不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField18(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段18不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField19(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段19不能为空",false);
Assert.isNull(receptionServiceReq.getDataType1(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型1不能为空",false);
Assert.isNull(receptionServiceReq.getDataType2(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型2不能为空",false);
Assert.isNull(receptionServiceReq.getDataType3(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型3不能为空",false);
Assert.isNull(receptionServiceReq.getDataType4(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型4不能为空",false);
Assert.isNull(receptionServiceReq.getDataType5(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型5不能为空",false);
Assert.isNull(receptionServiceReq.getDataType6(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型6不能为空",false);
Assert.isNull(receptionServiceReq.getDataType7(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型7不能为空",false);
Assert.isNull(receptionServiceReq.getDataType8(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型8不能为空",false);
Assert.isNull(receptionServiceReq.getDataType9(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型9不能为空",false);
Assert.isNull(receptionServiceReq.getDataType10(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型10不能为空",false);
Assert.isNull(receptionServiceReq.getDataType11(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型11不能为空",false);
Assert.isNull(receptionServiceReq.getDataType12(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型12不能为空",false);
Assert.isNull(receptionServiceReq.getDataType13(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型13不能为空",false);
Assert.isNull(receptionServiceReq.getDataType14(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型14不能为空",false);
Assert.isNull(receptionServiceReq.getDataType15(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型15不能为空",false);
Assert.isNull(receptionServiceReq.getDataType16(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型16不能为空",false);
Assert.isNull(receptionServiceReq.getDataType17(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型17不能为空",false);
Assert.isNull(receptionServiceReq.getDataType18(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型18不能为空",false);
Assert.isNull(receptionServiceReq.getDataType19(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型19不能为空",false);
Assert.isNull(receptionServiceReq.getDataType20(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型20不能为空",false);
Assert.isNull(receptionServiceReq.getDataType21(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型21不能为空",false);
Assert.isNull(receptionServiceReq.getDataType23(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型23不能为空",false);
Assert.isNull(receptionServiceReq.getDataType24(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型24不能为空",false);
Assert.isNull(receptionServiceReq.getDataType22(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型22不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段不能为空",false);
Assert.isNull(receptionServiceReq.getDataType25(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型25不能为空",false);
Assert.isNull(receptionServiceReq.getDataType26(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-数据点类型26不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField30(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段30不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField31(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段31不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField32(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段32不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField33(),"D4大屏接收字段入参(公共)-M4执行大屏接收字段-自定义字段33不能为空",false);
      receptionServiceRes = nbInterfaceMode.implementDashboardReceiveField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;

ImplementAcceptFieldComRespDto retData = new ImplementAcceptFieldComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setCustomField24(receptionServiceRes_1.getCustomField24());//SimpleFieldAssign//sourceId:1665878_1
retData.setCustomField23(receptionServiceRes_1.getCustomField23());//SimpleFieldAssign//sourceId:1665877_1
retData.setCustomField25(receptionServiceRes_1.getCustomField25());//SimpleFieldAssign//sourceId:1665879_1
retData.setCustomField26(receptionServiceRes_1.getCustomField26());//SimpleFieldAssign//sourceId:1665880_1
retData.setCountTotals(receptionServiceRes_1.getCustomField1());//SimpleFieldAssign//sourceId:1665136_1
retData.setCalcAverageValue(receptionServiceRes_1.getCustomField2());//SimpleFieldAssign//sourceId:1665137_1
retData.setOmsTask(receptionServiceRes_1.getCustomField20());//SimpleFieldAssign//sourceId:1665626_1
retData.setOmsQuestion(receptionServiceRes_1.getCustomField21());//SimpleFieldAssign//sourceId:1665627_1
retData.setCustomField22(receptionServiceRes_1.getCustomField22());//SimpleFieldAssign//sourceId:1665827_1
retData.setTobesign(receptionServiceRes_1.getCustomField3());//SimpleFieldAssign//sourceId:1665237_1
retData.setNotAtThe(receptionServiceRes_1.getCustomField4());//SimpleFieldAssign//sourceId:1665238_1
retData.setOngoing(receptionServiceRes_1.getCustomField5());//SimpleFieldAssign//sourceId:1665239_1
retData.setExpired(receptionServiceRes_1.getCustomField6());//SimpleFieldAssign//sourceId:1665240_1
retData.setCompleted(receptionServiceRes_1.getCustomField7());//SimpleFieldAssign//sourceId:1665241_1
retData.setFailed(receptionServiceRes_1.getCustomField8());//SimpleFieldAssign//sourceId:1665242_1
retData.setUnreported(receptionServiceRes_1.getCustomField9());//SimpleFieldAssign//sourceId:1665258_1
retData.setEva(receptionServiceRes_1.getCustomField10());//SimpleFieldAssign//sourceId:1665259_1
retData.setAudit(receptionServiceRes_1.getCustomField11());//SimpleFieldAssign//sourceId:1665260_1
retData.setSuccess(receptionServiceRes_1.getCustomField12());//SimpleFieldAssign//sourceId:1665261_1
retData.setExpired(receptionServiceRes_1.getCustomField29());//SimpleFieldAssign//sourceId:1667648_1
retData.setTobefill(receptionServiceRes_1.getCustomField27());//SimpleFieldAssign//sourceId:1667630_1
retData.setTobeeva(receptionServiceRes_1.getCustomField28());//SimpleFieldAssign//sourceId:1667631_1
retData.setQuestionability(receptionServiceRes_1.getCustomField13());//SimpleFieldAssign//sourceId:1665293_1
retData.setSuspended(receptionServiceRes_1.getCustomField14());//SimpleFieldAssign//sourceId:1665294_1
retData.setRejected(receptionServiceRes_1.getCustomField15());//SimpleFieldAssign//sourceId:1665295_1
retData.setOvertime(receptionServiceRes_1.getCustomField16());//SimpleFieldAssign//sourceId:1665296_1
retData.setShelve(receptionServiceRes_1.getCustomField17());//SimpleFieldAssign//sourceId:1665297_1
retData.setClosed(receptionServiceRes_1.getCustomField18());//SimpleFieldAssign//sourceId:1665298_1
retData.setResolved(receptionServiceRes_1.getCustomField19());//SimpleFieldAssign//sourceId:1665299_1
retData.setTotalNumberOfTasks(receptionServiceRes_1.getDataType1());//SimpleFieldAssign//sourceId:1665463_1
retData.setAverageTaskProgress(receptionServiceRes_1.getDataType2());//SimpleFieldAssign//sourceId:1665464_1
retData.setNumberOfTobesignTasks(receptionServiceRes_1.getDataType17());//SimpleFieldAssign//sourceId:1665858_1
retData.setNumberOfNotAtTheTasks(receptionServiceRes_1.getDataType16());//SimpleFieldAssign//sourceId:1665859_1
retData.setNumberOfOngoingTasks(receptionServiceRes_1.getDataType4());//SimpleFieldAssign//sourceId:1665466_1
retData.setNumberOfOverdueTasks(receptionServiceRes_1.getDataType3());//SimpleFieldAssign//sourceId:1665465_1
retData.setNumberOfCompletedTasks(receptionServiceRes_1.getDataType5());//SimpleFieldAssign//sourceId:1665467_1
retData.setNumberOfFailedTasks(receptionServiceRes_1.getDataType15());//SimpleFieldAssign//sourceId:1665853_1
retData.setNumberOfUnreportedTasks(receptionServiceRes_1.getDataType14());//SimpleFieldAssign//sourceId:1665854_1
retData.setNumberOfEvaTasks(receptionServiceRes_1.getDataType13());//SimpleFieldAssign//sourceId:1665855_1
retData.setNumberOfAuditTasks(receptionServiceRes_1.getDataType12());//SimpleFieldAssign//sourceId:1665856_1
retData.setNumberOfSuccessTasks(receptionServiceRes_1.getDataType11());//SimpleFieldAssign//sourceId:1665857_1
retData.setNumberOfTobefillTasks(receptionServiceRes_1.getDataType23());//SimpleFieldAssign//sourceId:1667642_1
retData.setNumberOfTobeEvaTasks(receptionServiceRes_1.getDataType24());//SimpleFieldAssign//sourceId:1667643_1
retData.setTotalNumberOfQuestions(receptionServiceRes_1.getDataType6());//SimpleFieldAssign//sourceId:1665468_1
retData.setAverageProblemSolvingTime(receptionServiceRes_1.getDataType7());//SimpleFieldAssign//sourceId:1665469_1
retData.setNumberOfUnresolvedIssues(receptionServiceRes_1.getDataType8());//SimpleFieldAssign//sourceId:1665470_1
retData.setNumberOfTimeoutIssues(receptionServiceRes_1.getDataType9());//SimpleFieldAssign//sourceId:1665471_1
retData.setNumberOfSolvedProblems(receptionServiceRes_1.getDataType10());//SimpleFieldAssign//sourceId:1665472_1
retData.setNumberOfClosedProblems(receptionServiceRes_1.getDataType18());//SimpleFieldAssign//sourceId:1665895_1
retData.setNumberOfShelveProblems(receptionServiceRes_1.getDataType19());//SimpleFieldAssign//sourceId:1665894_1
retData.setNumberOfRejectedProblems(receptionServiceRes_1.getDataType20());//SimpleFieldAssign//sourceId:1665893_1
retData.setNumberOfSuspendedProblems(receptionServiceRes_1.getDataType21());//SimpleFieldAssign//sourceId:1665896_1
retData.setNumberOfObjective(receptionServiceRes_1.getDataType22());//SimpleFieldAssign//sourceId:1667177_1
retData.setNumberOfLastObjective(receptionServiceRes_1.getDataType27());//SimpleFieldAssign//sourceId:1794097_1
retData.setIsTrue(receptionServiceRes_1.getCustomField());//SimpleFieldAssign//sourceId:1780512_1
retData.setComNumField(receptionServiceRes_1.getComNumField());//SimpleFieldAssign//sourceId:1794084_1
retData.setComNumField1(receptionServiceRes_1.getComNumField1());//SimpleFieldAssign//sourceId:1883573_1
retData.setTypeTargetAlignNumber(receptionServiceRes_1.getDataType25());//SimpleFieldAssign//sourceId:1780513_1
retData.setTypeTargetAlignRate(receptionServiceRes_1.getDataType26());//SimpleFieldAssign//sourceId:1780514_1
retData.setOmsTargetCategory(receptionServiceRes_1.getCustomField30());//SimpleFieldAssign//sourceId:1883565_1
retData.setOmsTargetObjective(receptionServiceRes_1.getCustomField31());//SimpleFieldAssign//sourceId:1883566_1
retData.setNumberOfRootCategory(receptionServiceRes_1.getCustomField32());//SimpleFieldAssign//sourceId:1883574_1
retData.setNumberOfSecondCategory(receptionServiceRes_1.getCustomField33());//SimpleFieldAssign//sourceId:1883575_1
retData.setCustomField34(receptionServiceRes_1.getCustomField34());//SimpleFieldAssign//sourceId:1961892_1
retData.setCustomField35(receptionServiceRes_1.getCustomField35());//SimpleFieldAssign//sourceId:1961893_1
    }




return retData;
  }
/**
   * D4新增内存业务数据(公共)[9608]
   * gen by moon at 5/19/2024, 2:14:04 AM
   */
  @Trace(operationName = "D4新增内存业务数据(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCalcMemoryBusinessDataComRespDto addCalcMemoryBusinessDataCom(AddCalcMemoryBusinessDataComReqDto reqDto){


      //步骤0: M4新增内存业务数据（特殊方法） - addCalcMemoryBusinessData
     //ModelCode: addMemoryBusinessData
        AddCalcMemoryBusinessDataRespDto addMemoryBusinessDataRes = null;
    AddCalcMemoryBusinessDataReqDto addMemoryBusinessDataReq=new AddCalcMemoryBusinessDataReqDto();
  if(reqDto!=null){
      addMemoryBusinessDataReq.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1807340_1
addMemoryBusinessDataReq.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1807341_1
addMemoryBusinessDataReq.setIsDataList(reqDto.getIsDataList());//SimpleFieldAssign//sourceId:1807342_1
    }
if(reqDto!= null&&  reqDto.getMemoryBusinessDataList() !=null&& !CollectionUtil.isEmpty(reqDto.getMemoryBusinessDataList())){
      addMemoryBusinessDataReq.setMemoryBusinessDataList(reqDto.getMemoryBusinessDataList().stream().map(item -> BeanUtil.toBean(item, MemoryBusinessDataDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1807343_1
    }

    /*M4新增内存业务数据（特殊方法）[9607]   */
    Assert.isNull(addMemoryBusinessDataReq.getBusinessDataObject(),"D4新增内存业务数据(公共)-M4新增内存业务数据（特殊方法）-业务数据对象不能为空",false);
Assert.isNull(addMemoryBusinessDataReq.getDataObjectBatchCode(),"D4新增内存业务数据(公共)-M4新增内存业务数据（特殊方法）-数据对象批次标识不能为空",false);
Assert.isNull(addMemoryBusinessDataReq.getIsDataList(),"D4新增内存业务数据(公共)-M4新增内存业务数据（特殊方法）-是否是数据集对象不能为空",false);
      addMemoryBusinessDataRes = nbInterfaceMode.addCalcMemoryBusinessData(addMemoryBusinessDataReq);




AddCalcMemoryBusinessDataComRespDto retData = new AddCalcMemoryBusinessDataComRespDto();





return retData;
  }
/**
   * D4查询内存业务数据详情(公共)[9613]
   * gen by moon at 5/19/2024, 2:15:21 AM
   */
  @Trace(operationName = "D4查询内存业务数据详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryClacMemoryBusinessDataDetailComRespDto queryClacMemoryBusinessDataDetailCom(QueryClacMemoryBusinessDataDetailComReqDto reqDto){


      QueryCalcMemoryBusinessDataDetailRespDto queryMemoryBusinessDataRes_1 =null;
//步骤0: M4查询内存业务数据详情（特殊方法） - queryCalcMemoryBusinessDataDetail
     //ModelCode: queryMemoryBusinessData
        QueryCalcMemoryBusinessDataDetailRespDto queryMemoryBusinessDataRes = null;
    QueryCalcMemoryBusinessDataDetailReqDto queryMemoryBusinessDataReq=new QueryCalcMemoryBusinessDataDetailReqDto();
  if(reqDto!=null){
      queryMemoryBusinessDataReq.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1807940_1
queryMemoryBusinessDataReq.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1807941_1
    }
if(reqDto!= null&&  reqDto.getMemoryBusinessResDataList() !=null&& !CollectionUtil.isEmpty(reqDto.getMemoryBusinessResDataList())){
      queryMemoryBusinessDataReq.setMemoryBusinessResDataList(reqDto.getMemoryBusinessResDataList().stream().map(item -> BeanUtil.toBean(item, MemoryBusinessResDataDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1807942_1
    }

    /*M4查询内存业务数据详情（特殊方法）[9612]   */
    Assert.isNull(queryMemoryBusinessDataReq.getBusinessDataObject(),"D4查询内存业务数据详情(公共)-M4查询内存业务数据详情（特殊方法）-业务数据对象不能为空",false);
Assert.isNull(queryMemoryBusinessDataReq.getDataObjectBatchCode(),"D4查询内存业务数据详情(公共)-M4查询内存业务数据详情（特殊方法）-数据对象批次标识不能为空",false);
      queryMemoryBusinessDataRes = nbInterfaceMode.queryCalcMemoryBusinessDataDetail(queryMemoryBusinessDataReq);


      queryMemoryBusinessDataRes_1 = queryMemoryBusinessDataRes;

QueryClacMemoryBusinessDataDetailComRespDto retData = new QueryClacMemoryBusinessDataDetailComRespDto();
  if(queryMemoryBusinessDataRes_1!=null){
      retData.setCustomField1(queryMemoryBusinessDataRes_1.getCustomField1());//SimpleFieldAssign//sourceId:1807996_1
retData.setCustomField2(queryMemoryBusinessDataRes_1.getCustomField2());//SimpleFieldAssign//sourceId:1807997_1
retData.setCustomField3(queryMemoryBusinessDataRes_1.getCustomField3());//SimpleFieldAssign//sourceId:1807998_1
retData.setCustomField4(queryMemoryBusinessDataRes_1.getCustomField4());//SimpleFieldAssign//sourceId:1807999_1
retData.setCustomField5(queryMemoryBusinessDataRes_1.getCustomField5());//SimpleFieldAssign//sourceId:1808000_1
retData.setCustomField6(queryMemoryBusinessDataRes_1.getCustomField6());//SimpleFieldAssign//sourceId:1808001_1
retData.setCustomField7(queryMemoryBusinessDataRes_1.getCustomField7());//SimpleFieldAssign//sourceId:1808002_1
retData.setCustomField8(queryMemoryBusinessDataRes_1.getCustomField8());//SimpleFieldAssign//sourceId:1808003_1
retData.setCustomField9(queryMemoryBusinessDataRes_1.getCustomField9());//SimpleFieldAssign//sourceId:1808004_1
retData.setCustomField10(queryMemoryBusinessDataRes_1.getCustomField10());//SimpleFieldAssign//sourceId:1808005_1
retData.setCustomField11(queryMemoryBusinessDataRes_1.getCustomField11());//SimpleFieldAssign//sourceId:1808006_1
retData.setCustomField12(queryMemoryBusinessDataRes_1.getCustomField12());//SimpleFieldAssign//sourceId:1808007_1
retData.setCustomField13(queryMemoryBusinessDataRes_1.getCustomField13());//SimpleFieldAssign//sourceId:1808008_1
retData.setCustomField14(queryMemoryBusinessDataRes_1.getCustomField14());//SimpleFieldAssign//sourceId:1808009_1
retData.setCustomField15(queryMemoryBusinessDataRes_1.getCustomField15());//SimpleFieldAssign//sourceId:1808010_1
retData.setCustomField16(queryMemoryBusinessDataRes_1.getCustomField16());//SimpleFieldAssign//sourceId:1808011_1
retData.setCustomField17(queryMemoryBusinessDataRes_1.getCustomField17());//SimpleFieldAssign//sourceId:1808012_1
retData.setCustomField18(queryMemoryBusinessDataRes_1.getCustomField18());//SimpleFieldAssign//sourceId:1808013_1
retData.setCustomField19(queryMemoryBusinessDataRes_1.getCustomField19());//SimpleFieldAssign//sourceId:1808014_1
retData.setCustomField20(queryMemoryBusinessDataRes_1.getCustomField20());//SimpleFieldAssign//sourceId:1808015_1
retData.setCustomField21(queryMemoryBusinessDataRes_1.getCustomField21());//SimpleFieldAssign//sourceId:1808016_1
retData.setCustomField22(queryMemoryBusinessDataRes_1.getCustomField22());//SimpleFieldAssign//sourceId:1808017_1
retData.setCustomField23(queryMemoryBusinessDataRes_1.getCustomField23());//SimpleFieldAssign//sourceId:1808018_1
retData.setCustomField24(queryMemoryBusinessDataRes_1.getCustomField24());//SimpleFieldAssign//sourceId:1808019_1
retData.setCustomField25(queryMemoryBusinessDataRes_1.getCustomField25());//SimpleFieldAssign//sourceId:1808020_1
retData.setCustomField26(queryMemoryBusinessDataRes_1.getCustomField26());//SimpleFieldAssign//sourceId:1808021_1
retData.setCustomField27(queryMemoryBusinessDataRes_1.getCustomField27());//SimpleFieldAssign//sourceId:1808022_1
retData.setCustomField28(queryMemoryBusinessDataRes_1.getCustomField28());//SimpleFieldAssign//sourceId:1808023_1
retData.setCustomField29(queryMemoryBusinessDataRes_1.getCustomField29());//SimpleFieldAssign//sourceId:1808024_1
retData.setCustomField30(queryMemoryBusinessDataRes_1.getCustomField30());//SimpleFieldAssign//sourceId:1808025_1
retData.setCustomField31(queryMemoryBusinessDataRes_1.getCustomField31());//SimpleFieldAssign//sourceId:1808026_1
retData.setCustomField32(queryMemoryBusinessDataRes_1.getCustomField32());//SimpleFieldAssign//sourceId:1808027_1
retData.setCustomField33(queryMemoryBusinessDataRes_1.getCustomField33());//SimpleFieldAssign//sourceId:1808028_1
retData.setCustomField34(queryMemoryBusinessDataRes_1.getCustomField34());//SimpleFieldAssign//sourceId:1808029_1
retData.setCustomField35(queryMemoryBusinessDataRes_1.getCustomField35());//SimpleFieldAssign//sourceId:1808030_1
retData.setCustomField36(queryMemoryBusinessDataRes_1.getCustomField36());//SimpleFieldAssign//sourceId:1808031_1
retData.setCustomField37(queryMemoryBusinessDataRes_1.getCustomField37());//SimpleFieldAssign//sourceId:1808032_1
retData.setCustomField38(queryMemoryBusinessDataRes_1.getCustomField38());//SimpleFieldAssign//sourceId:1808033_1
retData.setCustomField39(queryMemoryBusinessDataRes_1.getCustomField39());//SimpleFieldAssign//sourceId:1808034_1
retData.setCustomField40(queryMemoryBusinessDataRes_1.getCustomField40());//SimpleFieldAssign//sourceId:1808035_1
retData.setCustomField41(queryMemoryBusinessDataRes_1.getCustomField41());//SimpleFieldAssign//sourceId:1808036_1
retData.setCustomField42(queryMemoryBusinessDataRes_1.getCustomField42());//SimpleFieldAssign//sourceId:1808037_1
retData.setCustomField43(queryMemoryBusinessDataRes_1.getCustomField43());//SimpleFieldAssign//sourceId:1808038_1
retData.setCustomField44(queryMemoryBusinessDataRes_1.getCustomField44());//SimpleFieldAssign//sourceId:1808039_1
retData.setCustomField45(queryMemoryBusinessDataRes_1.getCustomField45());//SimpleFieldAssign//sourceId:1808040_1
retData.setCustomField46(queryMemoryBusinessDataRes_1.getCustomField46());//SimpleFieldAssign//sourceId:1808041_1
retData.setCustomField47(queryMemoryBusinessDataRes_1.getCustomField47());//SimpleFieldAssign//sourceId:1808042_1
retData.setCustomField48(queryMemoryBusinessDataRes_1.getCustomField48());//SimpleFieldAssign//sourceId:1808043_1
retData.setCustomField49(queryMemoryBusinessDataRes_1.getCustomField49());//SimpleFieldAssign//sourceId:1808044_1
retData.setCustomField50(queryMemoryBusinessDataRes_1.getCustomField50());//SimpleFieldAssign//sourceId:1808045_1
    }




return retData;
  }

  //
}
